package com.lin.pojo;


import java.io.Serializable;
import java.util.List;

public class Authority implements Serializable {

    private static final long serialVersionUID = 2291201468636967836L;
    private Integer id;
    private String authority;
    private String describe;
    private Integer pId;
    List<Authority> children;

    public List<Authority> getChildren() {
        return children;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAuthority() {
        return authority;
    }

    public void setAuthority(String authority) {
        this.authority = authority;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public void setChildren(List<Authority> children) {
        this.children = children;
    }

    @Override
    public String
    toString() {
        return "Authority{" +
                "id=" + id +
                ", authority='" + authority + '\'' +
                ", describe='" + describe + '\'' +
                ", pId=" + pId +
                ", children=" + children +
                '}';
    }
}
